GtkTextView: Change draw_layer signature
authorMatthias Clasen <mclasen@redhat.com>
Wed, 13 Aug 2014 13:09:22 +0000 (09:09 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 13 Aug 2014 13:18:08 +0000 (09:18 -0400)
Vfuncs should really take 'this' of the right type - the type
that the vfunc is added in.

gtk/gtktextview.c
gtk/gtktextview.h

index 4283f24a777901a867acd86b0f99a01036968785..a3dee23a0c191be4dc854edc512744c53a48c57d 100644 (file)
@@ -5328,12 +5328,12 @@ draw_text (cairo_t  *cr,
   gtk_style_context_restore (context);
 
   if (GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer != NULL)
-    GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (widget, GTK_TEXT_VIEW_LAYER_BELOW, cr);
+    GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (text_view, GTK_TEXT_VIEW_LAYER_BELOW, cr);
 
   gtk_text_view_paint (widget, cr);
 
   if (GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer != NULL)
-    GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (widget, GTK_TEXT_VIEW_LAYER_ABOVE, cr);
+    GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (text_view, GTK_TEXT_VIEW_LAYER_ABOVE, cr);
 }
 
 static void
index aaa03562f8be0b559602f394c5ae12f319a04d9a..1fdbcccc0b58453d464ae6a739c19fbac607821e 100644 (file)
@@ -139,8 +139,8 @@ struct _GtkTextViewClass
 
   GtkTextBuffer * (* create_buffer) (GtkTextView *text_view);
 
-  void (* draw_layer)       (GtkWidget        *widget,
-                            GtkTextViewLayer layer,
+  void (* draw_layer)       (GtkTextView      *text_view,
+                            GtkTextViewLayer  layer,
                             cairo_t          *cr);
 
   /* Padding for future expansion */